<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>主页 | 短信平台</title>
<jsp:include page="/WEB-INF/jsp/common/commonlist.jsp"></jsp:include>
<script>
	function bodyLoad(){
		activeMenuItem("systemSet","listNoticeItem");
	}
	
	function submitForm(){
		$('#newNoticeForm').attr("action","doEditNotice.do").submit(); 
		return false;
	}
	
</script>
<style>
	#userTable{
		padding:0;
		margin:0;
	}

	#userTable tr{
		background-color:white;
	}
	#userTable td{
		background-color:white;
	}
	
	td.td_title{
		width:80px;
	}
	
	.errorMsg{
		padding-top:9px;
		color:red;
		vertical-align: bottom;
	}
	
</style>
</head>
<body onload="bodyLoad()">
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- Sidebar with logo and menu -->
      <h1 id="sidebar-title"><a href="#">短信平台</a></h1> 
      <!-- Logo (221px wide) -->

      <!-- Sidebar Profile links -->
           <!--  页面左上角的部分 -->
     <%@include file="/WEB-INF/jsp/common/leftTop.jsp" %>
     <!-- 页面左侧菜单部分 -->
     <%@include file="/WEB-INF/jsp/common/menu.jsp" %>
      
      
    </div>
  </div>
  <!-- End #sidebar -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    
   <%@ include file="/WEB-INF/jsp/common/top.jsp" %>
    <!-- End .shortcut-buttons-set -->
    <div class="clear"></div>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>编辑公告</h3>
        <p class="errorMsg">${errorMsg}</p>
        <div style="vertical-align: top;">${msg }</div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab2">
          <form  id="newNoticeForm"  method="post"  onsubmit="return submitForm()">
          	<input type="hidden" name="id"  value="${notice.id }">
           <table id="userTable">
           <tr>           
              <td class="td_title"><label style="display: inline; width: 90px;">标题：</label></td>
              <td><input class="text-input small-input" type="text" id="title" name="title"  value="${notice.title}"  maxlength="50"/>（限50字）</td>              
            </tr>
       	
             
            <tr>
            <td style="vertical-align: top;">
              <label>内容：</label>
             </td>
             <td>
              <textarea  class="text-input textarea wysiwyg" id="content" name="content" cols="79" rows="15"  >${notice.content }</textarea>
              </td>
            </tr>
            	<tr>
            <td> <label style="display: inline;">是否显示：</label></td>
            <td>
            	<c:choose>
            		<c:when test="${notice.visible }">
            			<input type="radio" name="visible" checked  value="1"/>是&nbsp;&nbsp;
              			<input type="radio" name="visible"  value ="0"/>否	
            		</c:when>
            		<c:otherwise>
            				<input type="radio" name="visible"   value="1"/>是&nbsp;&nbsp;
              			<input type="radio" name="visible"   checked  value ="0"/>否
            		</c:otherwise>
            	</c:choose>             
              </td>
            </tr>
            <tr>
            <td colspan="2" style="text-align: center">
              <input class="button" type="submit" value="保存修改" />
			</td></tr>
           </table>
            <div class="clear"></div>
            <!-- End .clear -->
          </form>
        </div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->
    <div class="clear"></div>
    <%@ include file="/WEB-INF/jsp/common/copyright.jsp" %>
  </div>
  <!-- End #main-content -->
</div>
</body>
</html>